package com.jksoft.darewayyyy.ui;

import android.content.Context;

import cn.pedant.SweetAlert.SweetAlertDialog;

/**
 * Created by Administrator on 2015/11/3.
 */
public class CommonDialog {

    public CommonDialog() {

    }

    public static SweetAlertDialog getWaitingDialog(Context context, String title) {
        final SweetAlertDialog pDialog = new SweetAlertDialog(context, SweetAlertDialog.PROGRESS_TYPE)
                .setTitleText(title);
        return pDialog;
    }

    public static void getMessageDialog(Context context, String message) {
        SweetAlertDialog sd = new SweetAlertDialog(context);
        sd.setContentText(message);
        sd.setCancelable(true);
        sd.setCanceledOnTouchOutside(true);
        sd.show();
    }


}

